const path = require('path')
module.exports = {
  devServer:{
    compress:true,
    disableHostCheck:true,
    open:true,
    public: '192.168.101.2:8080'
  },
  lintOnSave: false,
  productionSourceMap: false, //编译不生成map文件
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      // 引入需要全局加载的 less 文件
      patterns: [path.resolve(__dirname, './public/css/global.less')],
    },
  }
}
